//
//  HYXUnitTestBaseViewModel.h
//  SpeSmartUnitTester_Example
//
//  Created by points on 2020/8/16.
//  Copyright © 2020 hfqf123. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HYXUnitTestNode.h"
@class HYXUnitTestBaseViewController;
NS_ASSUME_NONNULL_BEGIN

typedef void(^onCommitedBlock)(HYXUnitTestNode *unitTestNode);

@protocol HYXUnitTestBaseViewModelProtocol <NSObject>

@optional

/// 开始获取mock数据
- (void)onGetMockData;


/// 开始模拟执行业务业务处理
- (void)onStartExcuteBussnessLogic;

@end

@interface HYXUnitTestBaseViewModel : NSObject<HYXUnitTestBaseViewModelProtocol>

@property(nonatomic,weak)id<HYXUnitTestBaseViewModelProtocol> vmDelegate;

@property(nonatomic,weak)HYXUnitTestBaseViewController *controller;

- (void)onUnitTestCommitedBlock;

- (id)initWith:(HYXUnitTestBaseViewController *)vc;

- (id)initWith:(HYXUnitTestBaseViewController *)vc delegate:(id<HYXUnitTestBaseViewModelProtocol>)delegate;
@end

NS_ASSUME_NONNULL_END
